const express = require('express');
const exprseeJoi = require ('@escook/express-joi');
const {findCourseCheck, updateCourseCheck, deleteCourseCheck} = require('../utils/check');
const courseController = require('../controllers/courseContorller');

const router = express.Router();
//课程查询接口
router.get ('/find',exprseeJoi(findCourseCheck),courseController.listVideo)

//课程修改接口
router.get ('/update',exprseeJoi(updateCourseCheck),courseController.updateVideoById)

//课程删除接口
router.get ('/delete',exprseeJoi(deleteCourseCheck),courseController.deleteVideoById)


module.exports = router;